package com.bjsxt.userCenter.users.back.cntroller;

import java.util.HashMap;
import java.util.List;
import java.util.Map;
import java.util.Random;

import javax.annotation.Resource;
import javax.servlet.http.HttpServletRequest;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

import com.bjsxt.userCenter.users.pojo.AAdmins;
import com.bjsxt.userCenter.users.service.IUserService;
import com.bjsxt.usercenter.common.util.ConstatFinalUtil;
import com.bjsxt.usercenter.common.util.PageInfoUtil;

@Controller
@RequestMapping("/back/admins")
public class AdminsController
{

	@Resource
	private IUserService usersService;
	@RequestMapping("/adminsList.htm")
	public String adminsList(HttpServletRequest request){
		
		Map<String, Object> condMap=new HashMap<String, Object>();
		PageInfoUtil pageInfoUtil=new PageInfoUtil();
		List<AAdmins> adminsList =this.usersService.findListAdminsService(pageInfoUtil, condMap);
		ConstatFinalUtil.LOGGER.info("=========adminsList=========");
		request.setAttribute("adminsList", adminsList);
		return"/back/admins/adminsList";
	}
	
	
}
